<script>
import message from "@/tools/Message";

export default {
	name: "GoodsPriceSetting",
	data(){
		return {
			queryParams: {
				maketPrice:0,
				showPrice:0,
				coin:0,
				price:0,
				limit:0,
				count:0,
				sellCount:0,
				viewCount:0
			}
		}
	},
	methods: {
		submit(){
			message.success('设置价格与库存：' + JSON.stringify(this.queryParams))
		},
		cancel() {
			this.$emit("cancel")
		}
	}
}

</script>
<template>
	<div>
		<div class="title">
			<div style="line-height:35px;margin-left:20px">价格设置</div>
		</div>
		<el-container class="content-row">
			<div class="input-tip">
				市场价:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.maketPrice"></el-input>
			</div>
		</el-container>
		<el-container class="content-row">
			<div class="input-tip">
				展示价:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.showPrice"></el-input>
			</div>
		</el-container>
		<el-container class="content-row">
			<div class="input-tip">
				积分数:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.coin"></el-input>
			</div>
		</el-container>
		<el-container class="content-row">
			<div class="input-tip">
				成本价:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.price"></el-input>
			</div>
		</el-container>
		<el-container class="content-row">
			<div class="input-tip">
				限购数:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.limit"></el-input>
			</div>
		</el-container>
		<div class="title">
			<div style="line-height:35px;margin-left:20px">库存设置</div>
		</div>
		<el-container class="content-row">
			<div class="input-tip">
				库存数量:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.count"></el-input>
			</div>
		</el-container>
		<el-container class="content-row">
			<div class="input-tip">
				基础销量:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.sellCount"></el-input>
			</div>
		</el-container>
		<el-container class="content-row">
			<div class="input-tip">
				浏览数量:
			</div>
			<div class="input-field">
				<el-input v-model="queryParams.viewCount"></el-input>
			</div>
		</el-container>
		<el-container class="content-row">
			<el-button type="success" plain @click="submit">提交</el-button>
			<div style="margin-left:40px"></div>
			<el-button type="warning" plain @click="cancel">取消</el-button>
		</el-container>
	</div>
</template>

<style scoped>

</style>